<?php

$actions[][];


/*  Adds and action to the action list

	The tag represents what kind of action it is,.  
	The function_name, is the name of the function.
 */
public function add_action($tag, $fxn_name){
	array_push($actions[$tag],$fxn_name);
}



/*
	Performs all actions with the associated tag
*/
function do_actions($tag,$args = ''){
	$fxn_array[] = $actions[$tag];
	
	foreach($fxn_array as $fxn){
		call_user_func_array($fxn,$args);
	}
	
}


?>